<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:messages for="somekey" id="messagesone"/>
            <p:growl for="anotherkey" id="messagestwo"/>
            <p:commandButton value="Submit" update="messagesone, messagestwo" action="#{growlBean.doSomething}" />
        </h:form>
    </h:body>
</html>
